package com.arges.baen;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 批量获取通道url bean对象
 * </p>
 *
 * @author fanweitao
 * @date 2022/12/08
 */
@Data
public class BatchUrlBean implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 插件id
     */
    private String plugId;

    /**
     * 流UUID
     */
    @NotNull(message = "streamUuid is null")
    @Size(min = 1, max = 32)
    private String streamUuid;

    /**
     * 设备编码
     */
    @NotNull(message = "deviceCode is null")
    private String deviceCode;

    /**
     * 通道编码
     */
    @NotNull(message = "channelCode is null")
    private String channelCode;

    /**
     * 1-主码流；2-子码流
     */
    @NotNull(message = "streamType is null")
    @Max(2)
    @Min(1)
    private Integer streamType;

    /**
     * 码流类型 1-rtsp；2-rtmp；3-http-hls；4-http-flv；5-ws；6-铁塔私协；7-https-hls；8-https-flv；9-wss；
     */
    @NotNull(message = "protocolType is null")
    @Max(value = 9)
    @Min(value = 1)
    private Integer protocolType;

    /**
     * 码流地址类型1-公网(默认值为1)；0-局域内网；2-域名
     */
    @Max(value = 2)
    @Min(value = 0)
    private Integer netType;



}
